<%@page import="sdfi.lee.DAO.UserDAO"%>
<%@page import="sdfi.lee.Entity.User"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
  <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>	
	<%
		String id=request.getParameter("userid");
		User	user=new User();
		if(id!=null)
		{
		Integer userid=Integer.valueOf(id);
		 user=new UserDAO().getUserById(userid);
		 request.setAttribute("user",user);
		}
	%>
		<div>
		<label>公司名：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.company==null}">暂无信息</c:when>
				<c:otherwise>${requestScope.user.company}</c:otherwise>
			</c:choose>
		</label>
		</div>
		<div>
		<label>联系人：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.linkman==null}">暂无信息</c:when>
				<c:otherwise>${requestScope.user.linkman}</c:otherwise>
			</c:choose>
		</label>
		</div>
		<div>
		<label>地址：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.address==null}">暂无信息</c:when>
				<c:otherwise>${requestScope.user.address}</c:otherwise>
			</c:choose>
		</label>
		</div>
		<div>
		<label>地址：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.address==null}">暂无信息</c:when>
				<c:otherwise>${requestScope.user.address}</c:otherwise>
			</c:choose>
		</label>
		</div>
		
		<div>
		<label>用户名：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.username==null}">暂无信息</c:when>
				<c:otherwise>${requestScope.user.username}</c:otherwise>
			</c:choose>
		</label>
		</div>
		<div>
		<label>登录密码：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.password==null}">暂无信息</c:when>
				<c:otherwise>${requestScope.user.password}</c:otherwise>
			</c:choose>
		</label>
		</div>
		
		<div>
		<label>电子邮件：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.email==null}">暂无信息</c:when>
				<c:otherwise>
				${requestScope.user.email}</c:otherwise>
			</c:choose>
		</label>
		</div>
		<div>
		<label>手机号码：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.phone==null}">暂无信息</c:when>
				<c:otherwise>
				${requestScope.user.phone}</c:otherwise>
			</c:choose>
		</label>
		</div>
		
		<div>
		<label>用户状态：</label>
		<label>
			<c:choose>
				<c:when test="${requestScope.user.ustatus==-1}">已被锁定</c:when>
				<c:otherwise>
				未被锁定</c:otherwise>
			</c:choose>
		</label>
		</div>
		<div>
			<label>注册时间</label>
			<label>${requestScope.user.rgdatetime}</label>
		</div>
			
	
</body>
</html>